package com.boatAnchorAssistant.pojo.entity;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/11/13 20:18
 */
@Data
@Table
@AccEntity(value = "用户数据字典关联表",type = EntityType.SERVICE_ENTITY)
@TableComment("用户数据字典关联表")
public class UserDataDictionary extends DomainBaseEntity<UserDataDictionary> {
    /**
     * 用户id
     */
    @Column(type = MySqlTypeConstant.BIGINT,
            comment = "用户id")
    private Long userId;

    /**
     * 数据字典id
     */
    @Column(type = MySqlTypeConstant.BIGINT,
            comment = "数据字典id")
    private Long dataDictionaryId;

    /**
     * 类型：0-用户管理区域
     */
    @Column(type = MySqlTypeConstant.INT,
            comment = "类型：0-用户管理区域")
    private Integer type;
}
